package com.xj.product.service;

import com.xj.product.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
public interface ProductService extends IService<Product>{

    //根据pid查询商品信息
    Product findByPid(Integer pid);

    /**
     * 扣减商品库存
     *
     * @param pid
     * @param num
     */
    void reduceInventory(Integer pid, int num);
}
